import request from './request'

export function search(params) {
  return request({
    url: 'share/platform-service/organization/search',
    params
  })
}

export function getOrganizationTrees() {
  return request({
    url: 'share/platform-service/organization/treeVo',
  })
}

export function getById(param) {
  return request({
    url: 'share/platform-service/organization/'+param,
  })
}
export function deleteData(data) {
  return request({
    url: 'share/platform-service/organization/',
    method: 'delete',
    data
  })
}
export function saveOrUpdate(data,action) {
  return request({
    url: 'share/platform-service/organization/'+action,
    method: 'post',
    data
  })
}